import request from '@/utils/request'

// 查询变压器部件属性列表
export function listNyTransPartArrs(query) {
  return request({
    url: '/energy/nyTransPartArrs/list',
    method: 'get',
    params: query
  })
}

export function listNyNyEnteriseLoad(query) {
  return request({
    url: '/energy/nyTransPartArrs/nyEnteriseLoad/list',
    method: 'get',
    params: query
  })
}

// 查询变压器部件属性详细
export function getNyTransPartArrs(attrId) {
  return request({
    url: '/energy/nyTransPartArrs/' + attrId,
    method: 'get'
  })
}

// 新增变压器部件属性
export function addNyTransPartArrs(data) {
  return request({
    url: '/energy/nyTransPartArrs',
    method: 'post',
    data: data
  })
}

// 修改变压器部件属性
export function updateNyTransPartArrs(data) {
  return request({
    url: '/energy/nyTransPartArrs',
    method: 'put',
    data: data
  })
}

// 删除变压器部件属性
export function delNyTransPartArrs(attrId) {
  return request({
    url: '/energy/nyTransPartArrs/' + attrId,
    method: 'delete'
  })
}
